package com.galaxy.commom.base.annotation;

import com.galaxy.commom.base.enums.DataSourceEnum;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 数据源注解
 *
 * @author caijinbang
 * @date 2018/9/8 23:36
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataSourceAnnotation {

  DataSourceEnum value() default DataSourceEnum.MASTER;
}
